package edu.sctu.practice.class02.hujie.cgs.practice02.test13;

/**
 * Created by hj on 2015/10/23.
 */
public class Main {
    public static void main(String[] args) {
        Car car1 = new Car();
        System.out.println("无参数的车的轮子数：" + car1.tyre + "\n" + "车的颜色:" + car1.color + "\n" + "车的重量：" + car1.weight);
        Car car = new Car(4, "红色", 2.5f);
        System.out.println("车轮数：" + car.tyre + '\n' + "车的颜色：" + car.color + '\n' + "车的重量：" + car.weight);
        car.upspeed();
        car.downspeed();
        car.stop();
    }
}
